//控制login组件隐藏显示
export const Login = (prevState = {
    isLogin:true
}, action) => {
    const {type, payload} = action
    switch (type) {
        case "chang_login":
            let newState = {...prevState}
            newState.isLogin = payload
            return newState
        default:
            return prevState
    }
}